package com.yue.ssa.controller;

import com.yue.ssa.bean.RespBean;
import com.yue.ssa.service.MenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author zhengyl
 * @description
 * @date 2020-08-03 11:51
 */
@Api(value = "菜单管理", tags = "菜单管理")
@RequestMapping("rest/menu")
@RestController
public class MenuController {

    @Autowired
    private MenuService menuService;

    @ApiOperation(value = "获取所有叶节点", notes = "获取所有叶节点")
    @GetMapping("getLeafMenus")
    public RespBean getLeafMenus() {
        return menuService.getLeafMenus();
    }
}
